//
//  NITitleView.h
//  HavalConnect
//
//  Created by NAVINFO on 2017/10/23.
//  Copyright © 2017年 mengy. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol NITitleViewDelegate <NSObject>

@optional
- (void)onClickPulldownButton:(BOOL)pullDown;

@end

@interface NITitleView : UIView
@property(nonatomic) BOOL isRemoteView;//UI改版，临时增加字段，标识控制页特殊样式
@property(nonatomic)id<NITitleViewDelegate>delegate;

-(void)setTitle:(NSString *)title;
- (NSString *)getTitle;

-(void)setAvatarViewWithImage:(UIImage *)image action:(SEL)action target:(id)target showShadow:(BOOL)showShadow;
-(void)setBackBtnWithImageName:(NSString *)imageName action:(SEL)action target:(id)target;

-(void)setBackBtnWithImageName:(NSString *)imageName;

-(void)setRightBtn1WithImageName:(NSString *)imageName action:(SEL)action target:(id)target;

-(void)setRightBtn2WithImageName:(NSString *)imageName action:(SEL)action target:(id)target;
-(void)setRightBtn2WithTitle:(NSString *)title backgroundImageName:(NSString *)imageName action:(SEL)action target:(id)target;

-(void)setRightBtn1WithTitle:(NSString *)title backgroundImageName:(NSString *)imageName action:(SEL)action target:(id)target;

-(void)setBackBtnHidden:(BOOL)hidden;
-(void)hiddenRightBtn1;

-(void)hiddenRightBtn2;

-(void)setRightBtn1Enable:(BOOL)enable;

-(void)setRightBtn2Enable:(BOOL)enable;

-(void)showPulldown:(BOOL)showPullDown;

-(void)setPullDown:(BOOL)flag;

-(BOOL)avatarViewHidden;

@end
